﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GomeeSoft.src.classes;

namespace GomeeSoft.src.control
{
    public partial class UCTransparentPictureBox : PictureBox
    {
        public UCTransparentPictureBox()
        {
            InitializeComponent();
        }

        protected override void WndProc(ref Message m)
        {
            base.WndProc(ref m);

            if (m.Msg == Global.WM_NCHITTEST && DesignMode == false)
                m.Result = (IntPtr)Global.HTTRANSPARENT;
        }
    }
}
